<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="jman.service.UserService" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="jman.mode.User" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>匿名投票系统</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="/webpro1/zhou/admin/css/colorpicker.css" />
        <link rel="stylesheet" href="/webpro1/zhou/admin/css/datepicker.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/uniform.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/select2.css" />		
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/unicorn.main.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/unicorn.grey.css" class="skin-color" />	
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	
	<%
List<User> userList=new ArrayList<User>();
UserService us=new UserService();
userList=us.getAllStudents();
%>
	
		<div id="header">
			<h1><a href="./dashboard.html">Unicorn Admin</a></h1>		
		</div>
		
		<div id="search">
			<input type="text" placeholder="Search here..." /><button type="submit" class="tip-right" title="Search"><i class="icon-search icon-white"></i></button>
		</div>
		<div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav btn-group">
               
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
                <li class="btn btn-inverse"><a title="" href="login.html"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
            </ul>
        </div>
            
		<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-th-list"></i></a>
			<ul>
			<li ><a href="/webpro1/zhou/admin/thadmin.jsp"><i class="icon icon-th"></i> <span>首页</span><span class="label">6</span></a></li>
				
				<li class="active"><a href="/webpro1/zhou/admin/createvote.jsp"><i class="icon icon-th"></i> <span>创建投票</span><span class="label">6</span></a></li>
				
			</ul>
		
		</div>
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>Style:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		<div id="content">
			<div id="content-header">
				<h1>新建投票</h1>
				
			</div>
			<div id="breadcrumb">
				<a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 首页</a>
				<a href="#" class="tip-bottom">新建投票</a>
				
			</div>
			<div class="container-fluid">
				
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>新建</h5>
							</div>
							<div class="widget-content nopadding">
								<form action="/webpro1/CreateVote" method="get" class="form-horizontal" />
								
								<div class="control-group">
										<label class="control-label" name="title">投票标题</label>
										
										<div class="controls">
										
											<input type="text" name="title" />
										</div>
															
								
									<div class="control-group">
										<label class="control-label">候选人</label>
										<div class="controls">
										<%
										for(int i=0;i<userList.size();++i){
										%>
										<input type="checkbox" name="user_id1" value=<%=userList.get(i).getId() %>><%=userList.get(i).getName() %>(ID：<%=userList.get(i).getId() %>)
										<br>
										<%
										}
										%>
									</div>									
									
									<div class="control-group">
										<label class="control-label">参加投票人</label>
										<div class="controls">
									<%
									for(int i=0;i<userList.size();++i){
									%>
									<input type="checkbox" name="user_id2" value=<%=userList.get(i).getId() %>><%=userList.get(i).getName() %>(ID：<%=userList.get(i).getId() %>)
									<br>
									<%
									}
									%>
										</div>
									</div>
									
									
									<div class="form-actions">
										<button type="submit" class="btn btn-primary">Save</button>
									</div>
									
								</form>
							</div>
						</div>
					</div>
				</div>

				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
		</div>
		
		
            
            <script src="/webpro1/zhou/admin/js/jquery.min.js"></script>
            <script src="/webpro1/zhou/admin/js/jquery.ui.custom.js"></script>
            <script src="/webpro1/zhou/admin/js/bootstrap.min.js"></script>
            <script src="/webpro1/zhou/admin/js/bootstrap-colorpicker.js"></script>
            <script src="/webpro1/zhou/admin/js/bootstrap-datepicker.js"></script>
            <script src="/webpro1/zhou/admin/js/jquery.uniform.js"></script>
            <script src="/webpro1/zhou/admin/js/select2.min.js"></script>
            <script src="/webpro1/zhou/admin/js/unicorn.js"></script>
            <script src="/webpro1/zhou/admin/js/unicorn.form_common.js"></script>

</body>
</html>